/**
 * 
 */
package com.cait.dutyfree.pojo;

import java.io.Serializable;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * @author Rasika Kaluwalgoda
 * 
 */
@Entity
@Table(name = "airlines")
public class Airline implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Integer id;
	private String name;
	private String description;
	private Boolean status;
	private Set<AirlineProduct> airlineProducts;

	/**
	 * @return the alId
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Integer getId() {
		return id;
	}

	/**
	 * @param alId
	 *            the alId to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the alName
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param alName
	 *            the alName to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the alDesc
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param alDesc
	 *            the alDesc to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return the status
	 */
	public Boolean getStatus() {
		return status;
	}

	/**
	 * @param status
	 *            the status to set
	 */
	public void setStatus(Boolean status) {
		this.status = status;
	}

	@OneToMany(mappedBy = "airline")
	public Set<AirlineProduct> getAirlineProducts() {
		return airlineProducts;
	}

	public void setAirlineProducts(Set<AirlineProduct> airlineProducts) {
		this.airlineProducts = airlineProducts;
	}

}
